﻿@model ResultModel

<h2>@Model.Title</h2>

<article>@Html.Raw(Model.Content)</article>

@if (Request["from"] != "1")
{
    //from=1时，不显示返回
    <div class="bar">
        @if (string.IsNullOrEmpty(Model.ReturnUrl))
        {
            <a href="javascript:history.back()">返 回</a>
        }
        else
        {
            <a href="@Url.Content(Model.ReturnUrl)">返 回</a>
        }
    </div>
}

@section css
{
    <style type="text/css">
        h2, article {
            text-align: center;
        }
        body {background: #57A3C9;color: white}
        article {
            padding: 10px;
        }
        .bar {
            text-align: center;
            margin-top: 30px;
        }
        .bar a {
            width: 70%;
            background: black;
            color: white;
            border-radius: 20px;
            padding: 10px 0;
            display: inline-block;
            font-size: 15px;
            text-align: center;
            margin: 0 auto;
        }
    </style>
}